package top.dancun.easuser.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import top.dancun.common.entity.UserEntity;
import top.dancun.common.utils.PageUtils;
import top.dancun.easuser.controller.UserController;
import top.dancun.easuser.entity.PassWordVojo;
import top.dancun.easuser.form.LoginForm;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author dancun
 * @email message@dancun.top
 * @date 2022-09-05 22:15:48
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    UserEntity queryByUserName(String username);

    boolean register(LoginForm loginForm);

    UserEntity getUserInfo(String userId);

    List<UserEntity> listAllUserAndRole(Wrapper wrapper);

    void removeAllByIds(List<String> asList);

    void saveUser(UserEntity user);

    void updateUser(UserEntity user);

    void updatepwd(UserEntity user, PassWordVojo passWordVojo) throws Exception;
}

